import { defineStore } from 'pinia'
 
export  const useCounterStore = defineStore('counter',{
  state:()=>{
    return {
      counter:100,
      msg:"aaaaa"
    }
  },
  getters:{},
  actions:{
      addCount(){
          console.log(111)
          this.counter++
      },
      subCount(){
        this.counter--
      }

  },
  persist:true //开启持久化
})
